package controllers

import (
	"git.oschina.net/dddailing/deepserver/models"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
)

type GetList struct {
	beego.Controller
}

func (c *GetList) Get() {
	rec := make([]models.PatientRecord, 0)
	o := orm.NewOrm()
	o.QueryTable(&models.PatientRecord{}).All(&rec)
	c.Data["json"] = rec
	c.ServeJSON()
}
